<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	  	<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>管理菜单</title>
		<link href="back/css/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="back/js/jquery-1.7.2.js"></script>
		
	</head>

	<body>
		<div style="padding-top: 10px; padding-left: 5px; padding-right: 5px;">
			<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
				
				<tr>
					<td height="35" colspan="3" bgcolor="#FFFFFF">
						&nbsp;<img src="back/images/list.gif" />
						<a href="nav_insert.action?nav.navPid=0" title="添加新模块" style="font-size: 13px;color: #428EFF;">&nbsp;新增模块</a>
						<a href="#" onClick="javascript:window.location.reload()" title="刷新当前模块列表" 
							style="font-size: 13px;color: #428EFF;">&nbsp;刷新页面</a>
						<a href="#" title="查看被删除的模块信息" style="font-size: 13px;color: #428EFF;">&nbsp;查看回收站</a>					
					</td>
				</tr>
				
				<tr>
					<td width="20%" height="35" align="center" bgcolor="#FFFFFF" class="bg_tr" style="font-size:13px;">模块名称</td>

					<td width="45%" height="35" align="center" bgcolor="#FFFFFF" class="bg_tr" style="font-size:13px;">模块链接</td>
					<td width="35%" height="35" align="center" bgcolor="#FFFFFF" class="bg_tr" style="font-size:13px;">操作选项</td>
				</tr>
				
				<s:iterator value="navList" id="nl">
					
					<s:if test="%{#nl.levFlag==0}">
						<tr height="40" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#BFDFFF'"  onmouseout="this.style.backgroundColor=''">
							<td align="left">
								<img src='back/images/tree_folder4.gif' width='15' height='15' />
								<s:property value='#nl.title' />
								
							</td>
							<td align="center">&nbsp;<s:property value='#nl.url' /></td>
							<td align="center" width="450">
								&nbsp;
							</td>
						</tr>

					</s:if>
					<s:elseif test="%{#nl.levFlag==1}">
						
						<tr height="40" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#BFDFFF'"  onmouseout="this.style.backgroundColor=''">
							<td align="left">
								<img src='back/images/tree_line1.gif' width='17' height='16' />
								<img src='back/images/tree_folder3.gif' width='15' height='15' />
								<s:property value='#nl.title' />
								
							</td>
							<td align="center">&nbsp;<s:property value='#nl.url' /></td>
							<td align="center" width="450">
								<a href="oper_insert.action?nav.navId=<s:property value='#nl.navId' />">添加导航操作模块</a>&nbsp;
								
							</td>
						</tr>
						<s:action name="operListByNavId_find" var="paramNavid" executeResult="true">
							<s:param name="paramNavId"><s:property value="#nl.navId" /></s:param>
						</s:action>
					</s:elseif>
					
				</s:iterator>
				<!-- 循环模块列表 -->

			</table>

		</div>
		
	</body>
</html>


